package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * describe:
 *
 * @author lianying
 * @date 2020/12/03
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    @ResponseBody
    public String hello(){
        return "hello spring security";
    }

    @RequestMapping("/login")
    public String login(){
        return "login";
    }

    @RequestMapping("/doLogin")
    public String doLogin(String username,String password){

        return "login";
    }
}
